package dao;

import java.util.List;
import java.util.Map;

public interface StudentDao {
	public boolean writeStudent(Student student);
	public Student readStudent(String name);
	public List<Student> getAllStudents();//还未实现，同学可以尝试实现
	
	public int add(Student stu);
	public int delete(int sid);
	public int update(Student stu);
	public List<Student> findAll();
	public Student findById(int sid);
	public List<Student> findByName(String name);//根据姓名查找所有学生，使用%进行模糊匹配
	public void diplayAllStudent();
	public Map<String,Student> fun(List<Student> stulist);
}
